using System.Collections.Generic;

namespace UniFramework.Skill
{
	public partial class Skill
	{
		private void OnLogicFrameUpdateAudio()
		{
			List<SkillAudioConfigNode> dataList = skillConfig.skillAudioList;
			if (dataList == null || dataList.Count == 0) return;
			foreach (var data in dataList)
			{
				if (data.triggerFrame == _curLogicFrame)
				{
					//TODO 播放音频
				}

				if (!data.isLoop && data.endFrame == _curLogicFrame)
				{
					//TODO 结束音频
				}
			}
		}
	}
}